package com.ruoyi.common.domain.business;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 订单对象 orders
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("orders")
@ApiModel(description = "订单")
public class Orders extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "${comment}")
    private Long id;
    /**
     * 是否含税(0含税,1不含)
     */
    @Excel(name = "是否含税(0含税,1不含)")
    @ApiModelProperty(name = "是否含税(0含税,1不含)")
    private Long taxIncluded;
    /**
     * 物流费用
     */
    @Excel(name = "物流费用")
    @ApiModelProperty(name = "物流费用")
    private BigDecimal logisticsCost;
    /**
     * 经销商id
     */
    @Excel(name = "经销商id")
    @ApiModelProperty(name = "经销商id")
    private Long delearId;
    /**
     * 收货地址id
     */
    @Excel(name = "收货地址id")
    @ApiModelProperty(name = "收货地址id")
    private Long addressId;
    /**
     * 图片附件
     */
    @Excel(name = "图片附件")
    @ApiModelProperty(name = "图片附件")
    private String imgAttachment;
    /**
     * 审核状态(10未审核,20审核中,30审核通过,40未通过)
     */
    @Excel(name = "审核状态(10未审核,20审核中,30审核通过,40未通过)")
    @ApiModelProperty(name = "审核状态(10未审核,20审核中,30审核通过,40未通过)")
    private Long examineStatus;
    /**
     * 发货时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "发货时间")
    private Date deliveryTime;
    /**
     * 逻辑删除(0表示未删除，1表示软删除)
     */
    @TableLogic
    @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
    private Long isDelete;
}
